package com.pethub.service;

import com.pethub.entity.User;

import java.util.List;

/**
 * 2017-12-3
 * @author  harden
 * @version 1.0
 */
public interface UserService {
    User load(String id) throws Exception;

    User getByEmail(String email) throws Exception;

    User get(String id) throws Exception;

    List<User> findAll(String hql) throws Exception;

    User save(User entity) throws Exception;

    void saveOrUpdate(User entity) throws Exception;

    void delete(String id) throws Exception;

    void flush();
}
